Start using NSInteger and NSUInteger
authorKristian Rietveld <kris@gtk.org>
Sun, 27 Dec 2009 16:01:25 +0000 (17:01 +0100)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 4 Apr 2010 00:53:44 +0000 (20:53 -0400)
commite9b593c2e6267ff8d608af2024b463589304c65d
tree8012a47859f6995090b70cc15e5238c74a5f3e92
parent324c3e4cedd36ee439a6e2340e6ec90436c08b23
Start using NSInteger and NSUInteger

These have been introduced in Leopard and default to int and unsigned int.
In 64-bit Snow Leopard they are long and unsigned long.  This caused issues
with the getRectsBeingDrawn message which needs a pointer to a NSInteger
(long on 64-bit!) but we passed in an integer.  Surprisingly this problem
was visible when compiling with -O0 (segfault), but *not* when compiling
with -O1.  Other messages were NSInteger is now needed have also been
adapted.

Since NSInteger and NSUInteger are not available on Tiger, a define
has been added to add typedefs for these when they have not been defined
by the system headers.
gdk/quartz/GdkQuartzView.c
gdk/quartz/gdkcursor-quartz.c
gdk/quartz/gdkevents-quartz.c
gdk/quartz/gdkwindow-quartz.c
gdk/quartz/gdkwindow-quartz.h